<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>生成文档首页</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css"
          integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

</head>
<body>
<div class="container">
    <div class="row">
        <div class="jumbotron">
            <h1 class="display-4">数据字典</h1>
            <p class="lead">选择对应的数据库和表,填写文件名</p>
            <hr class="my-4">
            <p>
            <form id="docForm">
                <div class="form-group row">
                    <label for="db">数据库</label>
                    <select id="db" name="shcemaName" class="form-control" onchange="selDB();">
                        <optgroup th:each="db:${dbs}">
                            <option th:value="${db.SCHEMA_NAME}" th:text="${db.SCHEMA_NAME}"/>
                        </optgroup>
                    </select>
                </div>
                <div class="form-group row">
                    <label for="tb">表</label>
                    <select id="tb" name="tableName" class="form-control">
                    </select>
                </div>
                <div class="form-group row">
                    <label for="fileName">导出文件名</label>
                    <input id="fileName" name="fileName" class="form-control"/>
                </div>
            </form>
            </p>
            <p class="lead">
                <button type="button" class="btn btn-primary mb-2" onclick="exportDoc();">生成文档</button>
            </p>
        </div>
    </div>
</div>


<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<!--    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>-->
<script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"
        integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
        crossorigin="anonymous"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"
        integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
        crossorigin="anonymous"></script>
<!--    <script type="text/javascript" th:src="@{/js/jquery-3.4.1.min.js}"></script>-->
<script type="text/javascript" th:src="@{/js/index.js}"></script>
</body>
</html>